package day0905;

public class AnimalTest {
    public static void main(String[] args) {
        Dog xh = new Dog("小黑",2,"黄色");
        xh.eat();
        xh.drink();
        xh.lookHome();

        Dog xb = new Dog();
        xb.name = "小白";
        xb.age = 1;
        xb.color = "白色";
        xb.lookHome();
        xb.eat();
        xb.drink();

        Dog xm = new Dog("小红",1,"红色");
        xm.lookHome();

        Chick xb1 = new Chick();
        xb1.name = "小黄";
        xb1.age = 1;
        xb1.color = "黑色";
        xb1.eat();
        xb1.layEggs();

        Fish oo = new Fish("小小",2,"灰色");
        oo.eat();
        oo.drink();
    }
}
